package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Upvoke extends BaseDomain{

    //关联id(游记Id/评论Id/攻略Id)
    private Long relationId;

    //被点赞者id
    private Long userId;


    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    private Integer isnew;

    //点赞类型（1为游记点赞；2为评论点赞,3攻略点赞操作,4回复评论信息的点赞）
    private Integer type;

    //点赞者
    private User upvoker;

}